Skip to main content

Variable Constructors

An object defining constructors for the Variable class.

Variable(name, workflowData, workflowCodeInstance)

Constructor for the Variable class. Initializes a new instance of the Variable class.

Parameters:

name (required): string
The name of the flow object.

workflowData (required): IRuntimeWorkflowData
The workflow data associated with the flow object.

workflowCodeInstance (optional): IWorkflowCode
The optional workflow code instance.


Variable(name, workflowData, workflowCodeInstance)

Constructor for the Variable class. Initializes a new instance of Variable with the specified name, workflow data, and optional workflow code instance.

Parameters:

name (required): string
The name of the variable.

workflowData (required): IRuntimeWorkflowData
The runtime data of the workflow.

workflowCodeInstance (optional): IWorkflowCode
An optional workflow code instance to associate with the variable.